package com.atguigu.gulimall.auth.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.auth.vo.LoginUserVo;
import com.atguigu.gulimall.auth.vo.RegUserVo;
import com.atguigu.gulimall.auth.vo.SocialUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    public R regist(@RequestBody RegUserVo registVo);
    @PostMapping("/member/member/login")
    public R login(@RequestBody LoginUserVo loginVo);
    @PostMapping("/member/member/oauth/login")
    public R OauthLogin(@RequestBody SocialUser socialUser);
}
